import { createSelector } from '@reduxjs/toolkit'
// function getValue(state) {
//   return state.counter.value
// }

// function getToList2(state) {
//   return state.todo
// }

function getTotal(list1, value) {
  return list1.length + value
}
export const myNum2 = createSelector(
  [(state) => state.todo, (state) => state.counter.value],
  getTotal
)
// export const myNum2 = createSelector([getToList2, getValue], getTotal)
